package org.p2psimulator.entity.protocol.messages.gnutella;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class PingMessage extends Message {

	public PingMessage(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);

	}

	Id serventId;
	public Id getServentId() {
		return serventId;
	}

	public void setServentId(Id serventId) {
		this.serventId = serventId;
	}


	@Override
	public String getName() {

		return MessageTypes.PING_MESSAGE.getName();
	}

	@Override
	public MessageTypes getMessageType() {

		return MessageTypes.PING_MESSAGE;
	}

}
